﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<Xyz.Web.Reservation.Models.FlightModel>" %>

    <table style="width: 100%; border: 0; border-collapse: collapse">
    <tr>
        <td class="display-label">
            <%: Html.LabelFor(model => model.FlightCode) %>
        </td>
        <td class="display-field">
            <%: Model.FlightCode %>
        </td>
        <td class="display-label">
            <%: Html.LabelFor(model => model.FlightStatus) %>
        </td>
        <td class="display-field">
            <%: Model.FlightStatus %>
        </td>
    </tr>
    <tr>
        <td class="display-label">
            <%: Html.LabelFor(model => model.DepartureAirport) %>
        </td>
        <td class="display-field">
            <%: Model.DepartureAirport %>
        </td>
        <td class="display-label">
            <%: Html.LabelFor(model => model.ArrivalAirport) %>
        </td>
        <td class="display-field">
            <%: Model.ArrivalAirport %>
        </td>
    </tr>
    <tr>
        <td class="display-label">
            <%: Html.LabelFor(model => model.DepartureDateTime) %>
        </td>
        <td class="display-field">
            <%: String.Format("{0:g}", Model.DepartureDateTime) %>
        </td>
        <td class="display-label">
            <%: Html.LabelFor(model => model.ArrivalDateTime) %>
        </td>
        <td class="display-field">
            <%: String.Format("{0:g}", Model.ArrivalDateTime) %>
        </td>
    </tr>
    <tr>
        <td class="display-label">
            <%: Html.LabelFor(model => model.DepartureTerminal) %>
        </td>
        <td class="display-field">
            <%: Model.DepartureTerminal %>
        </td>
        <td class="display-label">
            <%: Html.LabelFor(model => model.ArrivalTerminal) %>
        </td>
        <td class="display-field">
            <%: Model.ArrivalTerminal %>
        </td>
    </tr>
    </table>

